-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce a "valuehead" search algorithm. #2121
base: master
Are you sure you want to change the base?
Conversation
I'll need to fix the registration, currently it's
|
Fixed the registration, ready for review. |
const std::vector<Move> legal_moves = board.GenerateLegalMoves(); | ||
std::vector<EvalResult> results(legal_moves.size()); | ||
|
||
for (size_t i = 0; i < legal_moves.size(); i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The loop should avoid exceeding the maximum_batch_size
, the earlier version did.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For that we'll need to have a Backend layer that would handle this (and add SearchCapabilities
to tell whether it needs that layer).
I'll send a separate PR for that (to be merged before this).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can merge it as is and do the other PR later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually now I have an idea how to do it without SearchCapabilities -- will update this PR.
Instead of it being an option.